/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
}

body {
  background-color: #f0f2f5;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

h2 {
  font-size: 22px;
  margin: 20px 0;
  color: #34495e;
}

/* 表单样式 */
form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 按钮样式 */
button, .btn {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover, .btn:hover {
  background-color: #2980b9;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.form-actions button:last-child {
  background-color: #95a5a6;
}

.form-actions button:last-child:hover {
  background-color: #7f8c8d;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

tr:hover {
  background-color: #f9f9f9;
}

/* 筛选区域样式 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.filters label {
  margin-bottom: 0;
  white-space: nowrap;
}

.filters input, .filters select {
  width: auto;
  min-width: 150px;
}

/* 操作按钮样式 */
.edit-btn, .delete-btn {
  padding: 6px 12px;
  margin: 0 5px;
  border-radius: 4px;
  font-size: 14px;
}

.edit-btn {
  background-color: #2ecc71;
}

.edit-btn:hover {
  background-color: #27ae60;
}

.delete-btn {
  background-color: #e74c3c;
}

.delete-btn:hover {
  background-color: #c0392b;
}

/* 排行榜样式 */
#rankingContent table {
  margin-top: 0;
}

.rank-1 {
  background-color: #fff8e1;
}

.rank-2 {
  background-color: #f5f5f5;
}

.rank-3 {
  background-color: #fff3e0;
}

/* 导航按钮样式 */
.nav-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.nav-button {
  background-color: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #2980b9;
  text-decoration: none;
}

/* 介绍区域样式 */
.intro {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  line-height: 1.6;
}

.intro ul {
  padding-left: 25px;
  margin-top: 10px;
}

.intro li {
  margin-bottom: 8px;
}

.intro strong {
  color: #2c3e50;
}
